package day15.HomeWork;

import java.io.Serializable;

public class ConsumInfo implements Serializable {
    String cardNumber;
    String type;
    double consumData;

    public ConsumInfo(String cardNumber, String type, double consumData) {
        this.cardNumber = cardNumber;
        this.type = type;
        this.consumData = consumData;
    }

    @Override
    public String toString() {
        return type + ":" + consumData;
    }
}
